<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CommonAppVersion extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::dropIfExists('common_app_version');
        Schema::create('common_app_version', function (Blueprint $table){
            $table->increments('id')->comment("ID");
            $table->string("version")->comment("版本号");
            $table->integer("build")->comment("APP版本数字号");
            $table->tinyInteger("force")->comment("是否强制升级");
            $table->text("details")->comment("更新细节");
            $table->integer('create_time')->comment("创建时间");
            $table->integer('update_time')->comment("更新时间");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
